package com.zhisuo.apicenter.service;


import com.zhisuo.apicenter.model.*;

import java.util.List;

public interface UserManService {


    List<DeliveryOrder> getListDeliveryOrderByReceiptMobile(String mobile,String status,Integer page,Integer pagesize);

    DeliveryOrder getDeliveryOrderById(String orderid);

    void updateReceiptOrderSysStatusById(String orderid,String receiptcode,String addresscode,int addressid);

    void updateReceiptOrderSysTimeStatusById(String orderid,String receiptcode,String addresscode,int addressid, String receiptuserorderstarttime, String receiptuserorderendtime);

    List<ZhiSuoUserAddress> getListUserAddressByUserId(String userid);

    ParkAreaBuild getParkAreaBuildById(Integer parkareabuildid);

    ParkArea getParkAreaById(int parkareaid);

    void updateReceiptOrderTimeStatusById(String orderid, String addressid, String receiptuserorderstarttime, String receiptuserorderendtime,String receiptcode,String addressCode);

    String getMobilByUserId(String userid);

    List<DeliveryOrder> getOrderIdByCarIdAndMobile(String carid, String mobile);

    String getOrderIdByCarIdAndReceiptcode(String carid, String receiptcode);

    void updateOrderByReceiptcode(String orderid,String userid);

    List<Integer> getDeliveryOrderCountByOrderTime(String receiptuserorderstarttime, String receiptuserorderendtime);

    List<DeliveryOrder> getListDeliveryOrderBySync(String carid);

    ZhiSuoUserAddress getZhiSuoUserAddressById(int receiptuseraddressid);

    List<String> getListCarIdDeliveryOrder();

    void updateZhiSuoCarNextStopListStauts(String carid);

    void insertNewZhiSuoCarNextStopList(String carid, String nextstop);

    ZhiSuoCar getZhiSuoCarByCarId(String carid);

    void insertNewZhiSuoCarNextStopTcp(String sn, int id, String name, String nextstop,String stop_timeout_sec,String beforestop);


    void insertFirstNewZhiSuoCarNextStopTcp(String sn, int id, String name, String nextstop,String stop_timeout_sec,String beforestop);


    String getNextStopByCarId(int id);

    ZhiSuoUser getZhiSuoUserByMobile(String receiptusermobile);

    ZhiSuoUserAddress getZhisuoFlagUserAddressByUserId(int id);

    Integer getOrderStatusByOrderId(String orderid);

    void updateNextStopListStatusByCarId(String carid);

    void insertNewZhiSuoCarNextStopSms(String receiptcode, String receiptusermobile,String carid,Integer smstype);

    String getNextStopTcpIdByCarIdAndStop(int id, String homestation);

    String getSmsStatusByCaridMobile(String receiptcode, String receiptusermobile, String s);

    List<String> getSendZhiSuoCarByAreaId(int parkareaid);

    String insertNewUserSendOrder(String userid, String carid, String boxnum, int id, String code, String sendmobile, String senduseraddressid, String code1, String senduserorderstarttime, String senduserorderendtime, String sendcode);

    void insertNewSendOrderList(String orderid, String code);

    String getOrderIdByCarIdAndSendcode(String carid, String sendcode);

    SendOrder getSendOrderIdByCarIdAndMobile(String carid, String mobile);

    void updateOrderBySendcode(String s, String userid);

    void insertNewZhiSuoCarSendNextStopTcp(String sn, int id, String name, String nextstop,String stop);

    void insertNewZhiSuoCarSendNextStopSms(String receiptcode, String receiptusermobile, String s, int i);

    List<DeliveryOrder> getListNoDeliveryOrderBySync(String carid,String beforestop);

    void updateOrderStatusAgainOrderByOrderId(int id);

    String getBeforeStopByCarId(int carid);

    void insertBeforeStopByCarId(int id, String stop);

    void updateUserIntegralByUserId(String userid, Integer award_integral);

    void insertNewZhiSuoUserIntegralRecord(String userid, int id, Integer award_integral, int type, int sourcetype);

    void insertZhiSuoUserSignRecord(String userid, String daydate);

    List<SendOrder> getListSendOrderByReceiptMobile(String userid, String status, Integer page, Integer pagesize);

    SendOrder getSendOrderById(String orderid);


    Integer getHasOrderNumByUserId(String usermobile,Integer type);

    List<SendOrder> getUserSendOrderIdByCarIdStatus(String s);

    void updateSendOrderByReceiptcode(String s, String userid);

    List<String> getListHasBoxByCarId(int id,String stop);

    void insertNewZhiSuoCarNextStopTcpSecond(String sn, int id, String name, String homestation);

    String getParkAreaIdByCarId(Integer carid);

    ZhiSuoUser getZhiSuoUserById(String userid);

    List<DeliveryOrder> getListDeliveryNoOrderByReceiptMobile(String mobile);

    Integer getHasSellerOrderNumByUserId(String userid, int i);

    List<String> getListCarIdSendOrder();

    List<SendOrder> getListSendOrderBySync(String carid);

    void updateSendOrderStatusByOrderId(int id);

    void updateDeliveryOrderGiveOtherUserByStatus(int id,String giveusermobile,String receiptusermobile);

    Integer getHasSendOrderNumByUserId(String mobile);

    void updateSellerOrderStatusAgainOrderByOrderId(int id);

    Integer getHasSellerSendOrderNumByUserId(String userid);

    ParkAreaBuild getParkAreaBuildByCode(String receiptuseraddresscode);

    void updateReceiptOrderSysTimeStatusByBuildId(String s, String receiptcode, String code, int id, String receiptuserorderstarttime, String receiptuserorderendtime);

    String getParkAreaBuildIdByUserid(String userid);

    String getTimeTableFromParkAreaId(int parkareaid);

    List<String> getListCarIdRubbishOrder();

    List<RubbishOrder> getListRubbishOrderBySync(String carid);
}
